<!--<div id="form-top">-->
<div class="onecolumn">
    <div class="header">
        <span style="color: red; text-align: center; font-weight: bold;">Chỉnh sửa tài liệu biên mục</span>
    </div>
    <br class="clear"/>
    <div id="form-top">
        <?php
        $form = $this->form;
        $form->setAttribute('action', $this->url('cataloging-document/default', array('action' => 'editDocument','id' => $bookBarcode)));
        $form->prepare();
        echo $this->form()->openTag($form);
        ?>
        <fieldset>
            <legend>Thông tin về tài liệu biên mục</legend>                   
            <p>
                <?php
                echo $this->formLabel($form->get('title'));
                echo $this->formInput($form->get('title'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('bookBarcode'));
                echo $this->formInput($form->get('bookBarcode'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('publisher'));
                echo $this->formInput($form->get('publisher'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('author'));
                echo $this->formInput($form->get('author'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formRow($form->get('languageID'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('numberOfPages'));
                echo $this->formInput($form->get('numberOfPages'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('yearOfPublish'));
                echo $this->formInput($form->get('yearOfPublish'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('totalNumber'));
                echo $this->formInput($form->get('totalNumber'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formRow($form->get('bookTypeID'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('paperSize'));
                echo $this->formInput($form->get('paperSize'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formRow($form->get('bookCategoryID'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('price'));
                echo $this->formInput($form->get('price'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formRow($form->get('usedAs'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('location'));
                echo $this->formInput($form->get('location'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('bookDescription'));
                echo $this->formTextarea($form->get('bookDescription'));
                ?>
            </p>
            <br class="clear"/>
            <div class="viewMessae" style="text-align: center">
                <?php
                if (isset($myMessage)) {
                    foreach ($myMessage as $key => $message) {
                        if ($message == "bookBarcode")
                            echo '<span style="color:red;font-weight:bold;float:right;margin-right:400px;margin-top:80px;">Mã vạch là một dãy số và các ký tự gạch ngang</span><br/>';
                        if ($message == "catalogingOK")
                            echo '<span style="color:red;font-weight:bold;float:right;margin-right:400px;margin-top:80px;">Biên mục thành công</span><br/>';
                        if ($message == "saveError")
                            echo '<span style="color:red;font-weight:bold;float:right;margin-right:400px;margin-top:80px;">Không thể lưu trữ</span><br/>';
                          if ($message == "bookBarcodeExist")
                            echo '<span style="color:red;font-weight:bold;float:right;margin-right:400px;margin-top:80px;">Mã tài liệu này đã được biên mục</span><br/>';
                    }
                }
                ?>
            </div>
            <div id="button-return">
                <?php
                echo $this->formInput($form->get('cataloging'));
                ?>
                <input type="reset" name="reset" value="Reset">
            </div>
        </fieldset>
        </form>
    </div>
</div>